<template>
	<view class="content">
		<view @tap="show = true">11111</view>
		<times :current_time="current_time" @close="close" :show="show" @Timetap="Timetap" :infoList="list" :slot_show="false" :titlebackground="'#ff007f'">
			<view slot="time">
				<view v-for="(item,index) in title" :key="index">{{index}}</view>
			</view>
		</times> 
	</view>
</template>

<script>
	import times from '@/components/time-box/index.vue'
	export default {
		components:{times},
		data() { 
			return {
				title: new Array(50),
				show:false,
				current_time:'2021-04-11',
				list:[
                        {
                            date: '12:00',
                            info: '的'
                        },

                        {
                            date: '12:00',
                            info: '看见阿萨德和封口机撒的护肤科技撒地方即可撒地方就开始'
                        },

                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },
                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },
                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },
                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },
                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },
                        {
                            date: '12:00',
                            info: '这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容这里是内容'
                        },

                    ]
			}
		},
		onLoad() {

		},
		methods: {
         close(data){
			 console.log(data);
			 this.show = data;
			 
		 },
		 Timetap(data){
			 this.current_time=data;
			 console.log(data)
		 }
		}
	}
</script>

<style>

</style>
